import type { RouteRecordRaw } from "vue-router"

export const staticRoutes: Array<RouteRecordRaw> = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/index.vue'),
        meta: { isShowTabbar: false }
    },

    {
        path: '/404',
        name: '404',
        component: () => import('@/views/error/404.vue'),
        meta: { isShowTabbar: false }
    },

    {
        path: '/',
        name: 'Home',
        component: () => import('@/views/home/index.vue'),
        meta: { isShowTabbar: true }
    },

    {
        path: '/item/catelist',
        name: 'CateList',
        component: () => import('@/views/cateList/index.vue'),
        meta: { isShowTabbar: true }
    },

    {
        path: '/topic/index',
        name: 'Topic',
        component: () => import('@/views/topic/index.vue'),
        meta: { isShowTabbar: true }
    },

    {
        path: '/cart',
        name: 'Cart',
        component: () => import('@/views/cart/index.vue'),
        meta: { isShowTabbar: true }
    },

    {
        path: '/ucenter',
        name: 'Ucenter',
        component: () => import('@/views/ucenter/index.vue'),
        meta: { isShowTabbar: true }
    },

    {
        path: '/search',
        name: 'Search',
        component: () => import('@/views/search/index.vue'),
        meta: {}
    },

    {
        path: '/:pathMatch(.*)',
        name: 'Any',
        redirect: '/404',
        meta: {}
    }
]
